package com.wsj.service;

import java.util.List;

import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.form.HomeSiteNews.AdminNewsTitleNewsForm;
import com.wsj.web.vo.homeSite.AutoPlay;
import com.wsj.web.vo.homeSite.HomeSiteNewsTitleNews;

/*****
 * 主站标题新闻管理接口
 * @author fengbin
 *
 */
public interface IHomeSiteNewsTitleNewsServ 
{

	/****
	 * 添加标题新闻
	 * @param homeSiteNewsTitleNews
	 * @return
	 * @throws BusinessException
	 */
	Boolean addHomeSiteNewsTitleNews(HomeSiteNewsTitleNews homeSiteNewsTitleNews)throws BusinessException;

	/****
	 * 通过id,加载标题新闻
	 * @param integer
	 * @return
	 * @throws BusinessException
	 */
	HomeSiteNewsTitleNews loadById(Integer integer)throws BusinessException;

	/****
	 * 更新标题新闻
	 * @param homeSiteNewsTitleNews
	 * @throws BusinessException
	 */
	boolean update(HomeSiteNewsTitleNews homeSiteNewsTitleNews)throws BusinessException;

	/*****
	 * 删除标题新闻
	 * @param homeSiteNewsTitleNews
	 * @throws BusinessException
	 */
	void deleteHomeSiteNewsTitleNews(HomeSiteNewsTitleNews homeSiteNewsTitleNews)throws BusinessException;

	/****
	 * 查询所有标题新闻
	 * @param adminNewsTitleNewsForm
	 * @return
	 * @throws BusinessException
	 */
	PageResultSet loadHomeSiteNewsTitleNewsList(AdminNewsTitleNewsForm adminNewsTitleNewsForm)throws BusinessException;

	/****
	 * 获取最后发表的一个标题新闻
	 * @return
	 * @throws BusinessException
	 */
	HomeSiteNewsTitleNews loadEndTitleNews(String siteType)throws BusinessException;

	/*****
	 * 通过父类id,获取子类列表
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	List loadTitleNewsByParentId(Integer id,String siteType)throws BusinessException;

	
  	 
}
